org.jboss.system.server.profileservice.repository.clustered.sync
Interface SynchronizationReadAction<T extends SynchronizationActionContext>

All Superinterfaces:
SynchronizationAction<T>
All Known Implementing Classes:
AddContentStreamAction, FileReadAction

public interface SynchronizationReadAction<T extends SynchronizationActionContext>
extends SynchronizationAction<T>

A that involves reading content from an item.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
 ByteChunk getNextBytes()
          Gets the next chunk of bytes from the item associated with this action.
 
Methods inherited from interface org.jboss.system.server.profileservice.repository.clustered.sync.SynchronizationAction
cancel, complete, getContext, getRepositoryContentModification, isCancelled, isComplete
 

Method Detail

getNextBytes

ByteChunk getNextBytes()
                       throws IOException
Gets the next chunk of bytes from the item associated with this action. Each call to this method will retrieve more bytes

Returns:
a ByteChunk.
Throws:
IOException - if there is a problem reading the bytes.
IllegalStateException - if SynchronizationAction.isComplete() would return true


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.