com.alachisoft.ncache.runtime.exceptions
Class StreamInvalidLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.alachisoft.ncache.runtime.exceptions.CacheException
com.alachisoft.ncache.runtime.exceptions.StreamException
com.alachisoft.ncache.runtime.exceptions.StreamInvalidLockException
- All Implemented Interfaces:
- java.io.Serializable
public class StreamInvalidLockException
- extends StreamException
StreamInvalidLockException is thrown if the current lock handle becomes invalid.
CacheStream opened for reading or writing mode acquires read or writer lock.
Suppose there are two cache clients. First opens stream for either reading/writing.
Before first client closes the stream, it is removed from the cache due to expiration
or eviction. Now at this moment second client opens a fresh stream. If first client
performs any operation on the stream, his lock handle becomes inavlid and StreamInvalidLockException
is thrown.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StreamInvalidLockException
public StreamInvalidLockException()
- Constructs an
StreamInvalidLockException
with null
as its error detail message.
StreamInvalidLockException
public StreamInvalidLockException(java.lang.String s)
- Constructs an
StreamInvalidLockException
with the specified detail
message. The error message string s
can later be
retrieved by the Throwable.getMessage()
method of class java.lang.Throwable
.
- Parameters:
s
- the detail message.