com.liferay.portal.kernel.dao.shard
Class ShardCallable<V>

java.lang.Object
  extended by com.liferay.portal.kernel.dao.shard.ShardCallable<V>
All Implemented Interfaces:
java.util.concurrent.Callable<V>

public abstract class ShardCallable<V>
extends java.lang.Object
implements java.util.concurrent.Callable<V>

Author:
Alexander Chow

Constructor Summary
ShardCallable(long companyId)
           
 
Method Summary
 V call()
           
protected abstract  V doCall()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardCallable

public ShardCallable(long companyId)
Method Detail

call

public V call()
       throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<V>
Throws:
java.lang.Exception

doCall

protected abstract V doCall()
                     throws java.lang.Exception
Throws:
java.lang.Exception