public static LargeBlockTask getLoadTask ( BlockId blockId , ByteBuffer block ) { return new LargeBlockTask ( ) { @ Override public LargeBlockResponse call ( ) throws Exception { Exception theException = null ; try { LargeBlockManager . getInstance ( ) . loadBlock ( blockId , block ) ; } catch ( Exception exc ) { theException = exc ; } return new LargeBlockResponse ( theException ) ; } } ; }
Get a new load task