org.fosstrak.llrp.adaptor
Interface AsynchronousNotifiable

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
AdaptorCallback, AsynchronousNotifiableList

public interface AsynchronousNotifiable
extends java.rmi.Remote

if you want to receive asynchronous message notifications you can implement this interface.

Author:
sawielan

Method Summary
 void notify(byte[] message, java.lang.String readerName)
          when an asynchronous message arrived, this method will be invoked.
 void notifyError(LLRPRuntimeException e, java.lang.String readerName)
          this method can be called asynchronously when there occurs an asynchronous error or exception.
 

Method Detail

notify

void notify(byte[] message,
            java.lang.String readerName)
            throws java.rmi.RemoteException
when an asynchronous message arrived, this method will be invoked.

Parameters:
message - the LLRPMessage arrived asynchronously.
readerName - the nam eof the reader that read the message.
Throws:
java.rmi.RemoteException - when there has been an error in the communication.

notifyError

void notifyError(LLRPRuntimeException e,
                 java.lang.String readerName)
                 throws java.rmi.RemoteException
this method can be called asynchronously when there occurs an asynchronous error or exception.

Parameters:
e - the exception that was triggered.
readerName - the name of the reader that triggered the error.
Throws:
java.rmi.RemoteException - when there has been an error in the communication.


Copyright © 2009. All Rights Reserved.