|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.llrp.adaptor.util.AsynchronousNotifiableList
public class AsynchronousNotifiableList
helper class to maintain a list of asynchronous message receivers. the helper checks whether there are transmission exception, and if so then the respective receivers get dropped after a certain number of erroneous transmissions.
Field Summary | |
---|---|
static int |
NUM_NON_RECHABLE_ALLOWED
remove the receiver after this number of unsuccessful connection attempts. |
Constructor Summary | |
---|---|
AsynchronousNotifiableList()
|
Method Summary | |
---|---|
void |
add(AsynchronousNotifiable entry)
add a new receiver to the list. |
java.util.List<org.fosstrak.llrp.adaptor.util.AsynchronousNotifiableList.Receiver> |
getAll()
|
void |
notify(byte[] message,
java.lang.String readerName)
notify all the receivers with a new message. |
void |
notifyError(LLRPRuntimeException e,
java.lang.String readerName)
notify all the receivers about an exception in the reader module. |
void |
remove(AsynchronousNotifiable entry)
removes a receiver from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NUM_NON_RECHABLE_ALLOWED
Constructor Detail |
---|
public AsynchronousNotifiableList()
Method Detail |
---|
public void add(AsynchronousNotifiable entry)
entry
- the new receiver to be stored in the list.public void remove(AsynchronousNotifiable entry)
entry
- the receiver to be removed.public void notify(byte[] message, java.lang.String readerName) throws java.rmi.RemoteException
notify
in interface AsynchronousNotifiable
message
- the LLRP message.readerName
- the reader that delivered the message.
java.rmi.RemoteException
- when there is an RMI exception.public void notifyError(LLRPRuntimeException e, java.lang.String readerName) throws java.rmi.RemoteException
notifyError
in interface AsynchronousNotifiable
e
- the exception.readerName
- the reader that delivered the exception.
java.rmi.RemoteException
- when there is an RMI exception.public java.util.List<org.fosstrak.llrp.adaptor.util.AsynchronousNotifiableList.Receiver> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |