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

All Superinterfaces:
SynchronizationAction<T>
All Known Implementing Classes:
FileWriteAction, NoOpRepositorySynchronizationWriteAction

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

A SynchronizationAction that involves writing content to an item.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
 void writeBytes(ByteChunk bytes)
          Write the given bytes to the item referenced by this action.
 
Methods inherited from interface org.jboss.system.server.profileservice.repository.clustered.sync.SynchronizationAction
cancel, complete, getContext, getRepositoryContentModification, isCancelled, isComplete
 

Method Detail

writeBytes

void writeBytes(ByteChunk bytes)
                throws IOException
Write the given bytes to the item referenced by this action.

Parameters:
bytes - the bytes. Cannot be null. The byte count must be greater than -1.
Throws:
IOException
IllegalStateException - if SynchronizationAction.isComplete() would return true


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