| Constructor and Description |
|---|
PoisonMessage(Throwable toThrow)
Creates a new PoisonMessage.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDatabaseName() |
String |
getOperationName() |
ReadPreference |
getReadPreference() |
VersionRange |
getRequiredVersionRange() |
int |
size() |
void |
validateSize(int maxDocumentSize) |
void |
write(int messageId,
BsonOutputStream out) |
void |
write(int messageId,
BufferingBsonOutputStream out) |
public PoisonMessage(Throwable toThrow)
toThrow - The exception to throw.public String getDatabaseName()
getDatabaseName in interface Messagepublic String getOperationName()
getOperationName in interface Messagepublic ReadPreference getReadPreference()
getReadPreference in interface Messagepublic VersionRange getRequiredVersionRange()
getRequiredVersionRange in interface Messagepublic void validateSize(int maxDocumentSize)
throws DocumentToLargeException
validateSize in interface MessageDocumentToLargeExceptionpublic void write(int messageId,
BsonOutputStream out)
throws IOException
write in interface MessageIOExceptionpublic void write(int messageId,
BufferingBsonOutputStream out)
throws IOException
write in interface MessageIOExceptionCopyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.