com.teraspaces.qwfix
Class FIXRemoteMessageTokenHelper

java.lang.Object
  extended by com.teraspaces.qwfix.FIXRemoteMessageTokenHelper

public final class FIXRemoteMessageTokenHelper
extends Object

Helper class to get information out of a remote message token.

Usually application developers don't need this class.


Field Summary
static long INVALID_TOKEN
          Represents an invalid token
static long NULL_TOKEN
          Represents a null token
 
Constructor Summary
FIXRemoteMessageTokenHelper()
           
 
Method Summary
static long getMessageToken(long remoteToken, FIXEngine engine)
          Gets the message token.
static boolean isValid(long token)
          Checks if the input token is valid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_TOKEN

public static final long INVALID_TOKEN
Represents an invalid token


NULL_TOKEN

public static final long NULL_TOKEN
Represents a null token

Constructor Detail

FIXRemoteMessageTokenHelper

public FIXRemoteMessageTokenHelper()
Method Detail

isValid

public static boolean isValid(long token)
Checks if the input token is valid.

Parameters:
token - the token
Returns:
true, if is valid

getMessageToken

public static long getMessageToken(long remoteToken,
                                   FIXEngine engine)
Gets the message token.

Parameters:
remoteToken - the remote token
engine - the FIX engine
Returns:
the message token