com.hazelcast.spi.impl
Class BinaryOperationFactory

java.lang.Object
  extended by com.hazelcast.spi.impl.BinaryOperationFactory
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, NodeAware, OperationFactory

public final class BinaryOperationFactory
extends Object
implements OperationFactory, NodeAware, IdentifiedDataSerializable


Constructor Summary
BinaryOperationFactory()
           
BinaryOperationFactory(Data operationData)
           
BinaryOperationFactory(Operation operation, NodeEngine nodeEngine)
           
 
Method Summary
 Operation createOperation()
          Creates the operation.
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void setNode(Node node)
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperationFactory

public BinaryOperationFactory()

BinaryOperationFactory

public BinaryOperationFactory(Operation operation,
                              NodeEngine nodeEngine)

BinaryOperationFactory

public BinaryOperationFactory(Data operationData)
Method Detail

createOperation

public Operation createOperation()
Description copied from interface: OperationFactory
Creates the operation.

Specified by:
createOperation in interface OperationFactory
Returns:
the created operation.

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

setNode

public void setNode(Node node)
Specified by:
setNode in interface NodeAware

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.