com.jivesoftware.base.search.task
Class TaskWithNoResult
java.lang.Object
com.jivesoftware.base.search.task.ServiceInvocation
com.jivesoftware.base.search.task.TaskWithNoResult
- All Implemented Interfaces:
- com.tangosol.io.ExternalizableLite, com.tangosol.net.Invocable, commonj.work.Work, java.io.Serializable, java.lang.Runnable
public abstract class TaskWithNoResult
- extends ServiceInvocation
Base class for non-daemon tasks that need to be executed in a remote JVM and return no results.
Subclasses just need to implement the ServiceInvocation.executeService()
method and may optionally
redefine the readExternal(java.io.DataInput)
and
writeExternal(java.io.DataOutput)
methods if they need to have internal state.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
getResult()
Returns the result of executing this task. |
boolean |
isDaemon()
|
void |
readExternal(java.io.DataInput dataInput)
Subclasses may redefine this method if they are going to have internal state
(i.e. instance variables). |
void |
writeExternal(java.io.DataOutput dataOutput)
Subclasses may redefine this method if they are going to have internal state
(i.e. instance variables). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskWithNoResult
public TaskWithNoResult()
getResult
public java.lang.Object getResult()
- Description copied from class:
ServiceInvocation
- Returns the result of executing this task.
- Specified by:
getResult
in interface com.tangosol.net.Invocable
- Specified by:
getResult
in class ServiceInvocation
isDaemon
public boolean isDaemon()
readExternal
public void readExternal(java.io.DataInput dataInput)
throws java.io.IOException
- Subclasses may redefine this method if they are going to have internal state
(i.e. instance variables).
- Throws:
java.io.IOException
writeExternal
public void writeExternal(java.io.DataOutput dataOutput)
throws java.io.IOException
- Subclasses may redefine this method if they are going to have internal state
(i.e. instance variables).
- Throws:
java.io.IOException
Copyright © 1999-2006 Jive Software.