public interface Buffer extends SagaObject
NO_WAIT, WAIT_FOREVER
Modifier and Type | Method and Description |
---|---|
void |
close()
Non-blocking close of the buffer object.
|
void |
close(float timeoutInSeconds)
Closes the buffer object.
|
byte[] |
getData()
Retrieves the buffer data.
|
int |
getSize()
Retrieves the current value of the buffer size.
|
void |
setData(byte[] data)
Sets the buffer data.
|
void |
setSize()
Sets the size of the buffer.
|
void |
setSize(int size)
Sets the size of the buffer.
|
clone, getId, getSession
void setSize(int size) throws BadParameterException, IncorrectStateException, NoSuccessException
size
- the size.IncorrectStateException
- is thrown when the buffer is closed.BadParameterException
- is thrown when the implementation cannot handle the specified size.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void setSize() throws BadParameterException, IncorrectStateException, NoSuccessException
IncorrectStateException
- is thrown when the buffer is closed.BadParameterException
- is thrown when the implementation cannot handle the default size.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.int getSize() throws IncorrectStateException
IncorrectStateException
- is thrown when the buffer is closed.void setData(byte[] data) throws BadParameterException, IncorrectStateException, NoSuccessException
data
- the data.IncorrectStateException
- is thrown when the buffer is closed.BadParameterException
- is thrown when the implementation cannot handle the specified data buffer.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.byte[] getData() throws DoesNotExistException, IncorrectStateException
IncorrectStateException
- is thrown when the buffer is closed.DoesNotExistException
- is thrown when the buffer was created with size -1, and no
I/O operation has been done on it yet.void close()
void close(float timeoutInSeconds)
timeoutInSeconds
- he timeout in seconds.Copyright © 2016 Open Grid Forum. All rights reserved.