org.sourceforge.jemm.database.components
Class DefaultDBClientRefHandler

java.lang.Object
  extended by org.sourceforge.jemm.database.components.DefaultDBClientRefHandler
All Implemented Interfaces:
DBClientRefHandler

public class DefaultDBClientRefHandler
extends java.lang.Object
implements DBClientRefHandler

handler for client reference tracking. s * @author Rory Graves


Constructor Summary
DefaultDBClientRefHandler(StorageEngine storageEngine)
           
 
Method Summary
 void clearReference(ClientId clientId, ID id)
           
 void clientDisconnect(ClientId clientId)
           
 boolean hasReference(ClientId clientId, ID id)
           
 void recordReference(ClientId clientId, ID id)
          Record a reference to the given id by the given client.
 void setObjectStatusListener(ObjectStatusListener objectStatusListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDBClientRefHandler

public DefaultDBClientRefHandler(StorageEngine storageEngine)
Method Detail

recordReference

public void recordReference(ClientId clientId,
                            ID id)
Record a reference to the given id by the given client.

Specified by:
recordReference in interface DBClientRefHandler
Parameters:
clientId - The client holding the reference.
id - The id to record.

setObjectStatusListener

public void setObjectStatusListener(ObjectStatusListener objectStatusListener)
Specified by:
setObjectStatusListener in interface DBClientRefHandler

clearReference

public void clearReference(ClientId clientId,
                           ID id)
Specified by:
clearReference in interface DBClientRefHandler

hasReference

public boolean hasReference(ClientId clientId,
                            ID id)
Specified by:
hasReference in interface DBClientRefHandler

clientDisconnect

public void clientDisconnect(ClientId clientId)
Specified by:
clientDisconnect in interface DBClientRefHandler


Copyright © 2009. All Rights Reserved.