com.sun.jini.jeri.internal.runtime
Class SequenceEntry

java.lang.Object
  extended by com.sun.jini.jeri.internal.runtime.SequenceEntry

final class SequenceEntry
extends Object


Field Summary
private  boolean keep
           
private  long sequenceNum
           
 
Constructor Summary
SequenceEntry(long sequenceNum)
           
SequenceEntry(long sequenceNum, boolean strong)
           
 
Method Summary
(package private)  boolean keep()
           
(package private)  boolean update(long seqNum, boolean strong)
          If the passed in sequence number is greater than the current number, it is updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sequenceNum

private volatile long sequenceNum

keep

private volatile boolean keep
Constructor Detail

SequenceEntry

SequenceEntry(long sequenceNum)

SequenceEntry

SequenceEntry(long sequenceNum,
              boolean strong)
Method Detail

update

boolean update(long seqNum,
               boolean strong)
If the passed in sequence number is greater than the current number, it is updated. If

Parameters:
seqNum - - passed in sequence number.
strong - - strong clean call is kept in the event of an update.
Returns:
true if the sequence number is updated.

keep

boolean keep()


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.