com.solab.iso8583
Interface TraceNumberGenerator

All Known Implementing Classes:
SimpleTraceGenerator

public interface TraceNumberGenerator

This interface defines the behavior needed to provide sequence numbers for newly created messages. It must provide sequence numbers between 1 and 999999, as per the ISO standard. This value is put in field 11. A default version that simply iterates through an int in memory is provided.

Author:
Enrique Zamudio

Method Summary
 int getLastTrace()
          Returns the last number that was generated.
 int nextTrace()
          Returns the next trace number.
 

Method Detail

nextTrace

int nextTrace()
Returns the next trace number.


getLastTrace

int getLastTrace()
Returns the last number that was generated.