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 Message
public String getOperationName()
getOperationName
in interface Message
public ReadPreference getReadPreference()
getReadPreference
in interface Message
public VersionRange getRequiredVersionRange()
getRequiredVersionRange
in interface Message
public void validateSize(int maxDocumentSize) throws DocumentToLargeException
validateSize
in interface Message
DocumentToLargeException
public void write(int messageId, BsonOutputStream out) throws IOException
write
in interface Message
IOException
public void write(int messageId, BufferingBsonOutputStream out) throws IOException
write
in interface Message
IOException
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.