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
-
-
Constructor Summary
Constructors Constructor Description StreamInvalidLockException()
Constructs anStreamInvalidLockException
withnull
as its error detail message.StreamInvalidLockException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
StreamInvalidLockException(java.lang.String s)
Constructs anStreamInvalidLockException
with the specified detail message.
-
Method Summary
-
Methods inherited from class com.alachisoft.ncache.runtime.exceptions.CacheException
getErrorCode, printStackTrace, setErrorCode
-
-
-
-
Constructor Detail
-
StreamInvalidLockException
public StreamInvalidLockException()
Constructs anStreamInvalidLockException
withnull
as its error detail message.
-
StreamInvalidLockException
public StreamInvalidLockException(java.lang.String s)
Constructs anStreamInvalidLockException
with the specified detail message. The error message strings
can later be retrieved by the
method of classThrowable.getMessage()
java.lang.Throwable
.- Parameters:
s
- the detail message.
-
StreamInvalidLockException
public StreamInvalidLockException(int errorCode, java.lang.String reason, java.lang.String stackTrace)
-
-