org.smallmind.constellation.ephemeral
Class EphemeralHandle
java.lang.Object
org.smallmind.constellation.ephemeral.EphemeralHandle
public class EphemeralHandle
- extends Object
|
Constructor Summary |
EphemeralHandle(SmallMindComponent smallMindComponent,
Logger logger,
EphemeralKey ephemeralKey,
String ephemeralClassName,
int creationTimeout)
|
EphemeralHandle(SmallMindComponent smallMindComponent,
Logger logger,
EphemeralKey ephemeralKey,
String ephemeralClassName,
Long resultCreationTime,
Long resultLastAccessTime,
Integer resultTimeout,
Boolean resultValidity)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EphemeralHandle
public EphemeralHandle(SmallMindComponent smallMindComponent,
Logger logger,
EphemeralKey ephemeralKey,
String ephemeralClassName,
int creationTimeout)
throws EphemeralCreationException
- Throws:
EphemeralCreationException
EphemeralHandle
public EphemeralHandle(SmallMindComponent smallMindComponent,
Logger logger,
EphemeralKey ephemeralKey,
String ephemeralClassName,
Long resultCreationTime,
Long resultLastAccessTime,
Integer resultTimeout,
Boolean resultValidity)
throws EphemeralCreationException
- Throws:
EphemeralCreationException
getEphemeral
public Ephemeral getEphemeral()
throws EphemeralRecoveryException
- Throws:
EphemeralRecoveryException
clear
public void clear()
remove
public void remove()
isValid
public boolean isValid()
invalidate
public void invalidate(boolean cache)
touch
public void touch()
getLastAccessTime
public long getLastAccessTime()
setTimeout
public void setTimeout(int seconds)
getTimeout
public int getTimeout()
isNew
public boolean isNew()
getEphemeralKey
public EphemeralKey getEphemeralKey()
getCreationTime
public long getCreationTime()
bind
public void bind(String key,
Object data)
unbind
public void unbind(String key)
getBindings
public Map<String,Object> getBindings()
throws EphemeralPersistenceException
- Throws:
EphemeralPersistenceException
logError
public void logError(Exception exception)
Copyright © 2012. All Rights Reserved.