Code Monkey home page Code Monkey logo

gameanalyticsapi's People

Contributors

npexception avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gameanalyticsapi's Issues

Replace ReentrantLocks with ACLocks where apropriate.

Make a class that extends ReentrantLock and implements AutoCloseable:

/**
 * An auto closeable lock. It can be used to lock blocks of code by using
 * try-with-resource instead of having to keep an eye on proper unlock manually.<br>
 * <br>
 * <b>Usage:</b>
 *
 * <pre>
 * private ACLock myLock = new ACLock();
 * 
 * public void someMethod() {
 *  try (ACLock acl = myLock.lockAC()) {
 *      // this block can only be entered by one thread at a time
 *      doStuffThatNeedsThreadSafety();
 *  }
 * }
 * </pre>
 *
 * @author dirk
 * @date 20.07.2015
 *
 */
public class ACLock extends ReentrantLock implements AutoCloseable {
    private static final long serialVersionUID = -2604054164317029860L;

    public ACLock lockAC() {
        lock();
        return this;
    }

    @Override
    public void close() {
        unlock();
    }
}

failed to send analytics

Hey NPE,

Just shooting this error I noted in a clients service:

[de.npe.gameanalytics.EventHandler$RESTHelper:sendData:209]: Failed to send analytics event data. Result of attempt: ok | Authentication hash used: aa505b4994af166bb9cf48a5b5c53c59 | Data sent: [{"install_publisher":"1.8.0_45-b14","install_site":"server","install_campaign":"2.6.32-504.12.2.el6.x86_64","install_adgroup":"amd64","install_ad":"Linux","install_keyword":"server","user_id":"server8f2b19ba-8f0f-4e38-95cf-a4f791957974","session_id":"1456276073039","build":"unspecified"}]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.