Class JCoinbasePropertiesFactory

java.lang.Object
com.github.badpop.jcoinbase.JCoinbasePropertiesFactory

public abstract class JCoinbasePropertiesFactory
extends java.lang.Object
A class factory to use to build JCoinbaseProperties objects

This class allows you to build new JCoinbaseProperties instances by calling the build(String, String, String, boolean) method

  • Constructor Summary

    Constructors
    Constructor Description
    JCoinbasePropertiesFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected static JCoinbaseProperties build​(java.lang.String apiKey, java.lang.String secret, java.lang.String apiVersion, boolean threadSafe)
    This method build the JCoinbaseClient needed Properties.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JCoinbasePropertiesFactory

      public JCoinbasePropertiesFactory()
  • Method Details

    • build

      protected static JCoinbaseProperties build​(java.lang.String apiKey, java.lang.String secret, java.lang.String apiVersion, boolean threadSafe)
      This method build the JCoinbaseClient needed Properties.

      The 'threadSafe' param define if it should build a new instance or use a thread safe singleton. Note that a thread safe singleton is more resource intensive. You should only use it in some specific cases where multi-threading is crucial

      Parameters:
      apiKey - the coinbase api key
      secret - the coinbase api secret
      apiVersion - the coinbase api version
      threadSafe - boolean defining if the properties should be a thread safe singleton
      Returns:
      a properly configured JCoinbaseProperties