2007-02-28 (수), 09:18 +0100, Norman Maurer 쓰시길:
> Newcomb, Michael-P57487 schrieb:
> > Say I have a filter that wants to change what is being written. How do I
> > do that?
> >
> >   
> > Is it safe to create a new WriteRequest object like:
> >
> > nextFilter.filterWrite(session, new WriteRequest(myNewObject);

As Michael addressed in the other thread, the following is correct:

nextFilter.filterWrite(
        session, new WriteRequest(newObject, oldWriteRequest.getFuture()));

> > Also, what if my filter wants to stop the message from being written but
> > I still want WriteFuture.join() and WriteFuture.isWritten() == true?

Then you need to call WriteFuture.setWritten(false) by yourself.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to