org.apache.jcs.auxiliary.remote.behavior
Interface IRemoteCacheListener

All Superinterfaces:
ICacheListener, java.rmi.Remote
All Known Implementing Classes:
RemoteCacheListener, RemoteCacheServerListener

public interface IRemoteCacheListener
extends ICacheListener, java.rmi.Remote

Listens for remote cache event notification ( rmi callback ).


Field Summary
static int CLIENT_LISTENER
          Description of the Field
static int SERVER_LISTENER
          Description of the Field
 
Method Summary
 long getListenerId()
          Get the id to be used by this manager.
 int getRemoteType()
          Gets the remoteType attribute of the IRemoteCacheListener object
 void setListenerId(long id)
          Set the id to be used by this manager.
 
Methods inherited from interface org.apache.jcs.engine.behavior.ICacheListener
handleDispose, handlePut, handleRemove, handleRemoveAll
 

Field Detail

SERVER_LISTENER

public static final int SERVER_LISTENER
Description of the Field

See Also:
Constant Field Values

CLIENT_LISTENER

public static final int CLIENT_LISTENER
Description of the Field

See Also:
Constant Field Values
Method Detail

getListenerId

public long getListenerId()
                   throws java.io.IOException
Get the id to be used by this manager.

Specified by:
getListenerId in interface ICacheListener
Returns:
long
Throws:
java.io.IOException

setListenerId

public void setListenerId(long id)
                   throws java.io.IOException
Set the id to be used by this manager. The remote cache server identifies clients by this id. The value will be set by the server through the remote cache listener.

Specified by:
setListenerId in interface ICacheListener
Parameters:
id -
Throws:
java.io.IOException

getRemoteType

public int getRemoteType()
                  throws java.io.IOException
Gets the remoteType attribute of the IRemoteCacheListener object

Returns:
The remoteType value
Throws:
java.io.IOException


Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.