public abstract class BufferFactory extends Object
Constructor and Description |
---|
BufferFactory() |
Modifier and Type | Method and Description |
---|---|
static Buffer |
createBuffer()
Creates a (implementation-managed) buffer.
|
static Buffer |
createBuffer(byte[] data)
Creates a (application-allocated) buffer.
|
static Buffer |
createBuffer(int size)
Creates a (implementation-managed) buffer of the specified size.
|
static Buffer |
createBuffer(String sagaFactoryClassname)
Creates a (implementation-managed) buffer.
|
static Buffer |
createBuffer(String sagaFactoryClassname,
byte[] data)
Creates a (application-allocated) buffer.
|
static Buffer |
createBuffer(String sagaFactoryClassname,
int size)
Creates a (implementation-managed) buffer of the specified size.
|
protected abstract Buffer |
doCreateBuffer(byte[] data)
Creates a buffer.
|
protected abstract Buffer |
doCreateBuffer(int size)
Creates a buffer.
|
protected abstract Buffer doCreateBuffer(byte[] data) throws BadParameterException, NoSuccessException
data
- the storage.BadParameterException
NoSuccessException
protected abstract Buffer doCreateBuffer(int size) throws BadParameterException, NoSuccessException
size
- the size of the buffer.BadParameterException
NoSuccessException
public static Buffer createBuffer(byte[] data) throws BadParameterException, NoSuccessException
data
- the storage.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the implementation cannot handle the specified data buffer.public static Buffer createBuffer(String sagaFactoryClassname, byte[] data) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.data
- the storage.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the implementation cannot handle the specified data buffer.public static Buffer createBuffer(int size) throws BadParameterException, NoSuccessException
size
- the size.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the implementation cannot handle the specified size.public static Buffer createBuffer(String sagaFactoryClassname, int size) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.size
- the size.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the implementation cannot handle the specified size.public static Buffer createBuffer() throws BadParameterException, NoSuccessException
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the defaults are not suitable.public static Buffer createBuffer(String sagaFactoryClassname) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the defaults are not suitable.Copyright © 2016 Open Grid Forum. All rights reserved.