
public interface AccumulateFunction extends Externalizable
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(Serializable context,
Object value)
Executes the accumulation action
|
Serializable |
createContext()
Creates and returns a new context object
|
Object |
getResult(Serializable context) |
Class<?> |
getResultType() |
void |
init(Serializable context)
Initializes the accumulator
|
void |
reverse(Serializable context,
Object value)
Reverses the accumulation action
|
boolean |
supportsReverse() |
readExternal, writeExternalSerializable createContext()
void init(Serializable context) throws Exception
context - Exceptionvoid accumulate(Serializable context, Object value)
context - value - void reverse(Serializable context, Object value) throws Exception
context - value - ExceptionObject getResult(Serializable context) throws Exception
Exceptionboolean supportsReverse()
Class<?> getResultType()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.