com.hazelcast.core
Class DistributedTask.DistributedRunnableAdapterImpl<V>

java.lang.Object
  extended by com.hazelcast.core.DistributedTask.DistributedRunnableAdapterImpl<V>
All Implemented Interfaces:
HazelcastInstanceAware, Serializable, Callable<V>
Enclosing class:
DistributedTask<V>

public static class DistributedTask.DistributedRunnableAdapterImpl<V>
extends Object
implements Serializable, Callable<V>, HazelcastInstanceAware

See Also:
Serialized Form

Constructor Summary
DistributedTask.DistributedRunnableAdapterImpl(Runnable task, V result)
           
 
Method Summary
 V call()
           
 V getResult()
           
 Runnable getRunnable()
           
 void setHazelcastInstance(HazelcastInstance hazelcastInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedTask.DistributedRunnableAdapterImpl

public DistributedTask.DistributedRunnableAdapterImpl(Runnable task,
                                                      V result)
Method Detail

getResult

public V getResult()

getRunnable

public Runnable getRunnable()

call

public V call()
Specified by:
call in interface Callable<V>

setHazelcastInstance

public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
Specified by:
setHazelcastInstance in interface HazelcastInstanceAware


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.