org.apache.james.mailbox.jpa.mail.model.openjpa
Class JPAStreamingMessage
java.lang.Object
org.apache.james.mailbox.store.mail.model.AbstractMessage
org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
org.apache.james.mailbox.jpa.mail.model.openjpa.JPAStreamingMessage
- All Implemented Interfaces:
- Message
@Entity(name="Message")
public class JPAStreamingMessage
- extends AbstractJPAMessage
JPA implementation of AbstractJPAMessage which use openjpas Persistent type to
be able to stream the message content without loading it into the memory at all.
This is not supported for all DB's yet. See http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_mapping_jpa.html
If your DB is not supported by this, use JPAMessage
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JPAStreamingMessage
@Deprecated
public JPAStreamingMessage()
- Deprecated.
JPAStreamingMessage
public JPAStreamingMessage(java.io.InputStream content,
long contentOctets,
int bodyStartOctet,
java.util.List<JPAHeader> headers,
PropertyBuilder propertyBuilder)
JPAStreamingMessage
public JPAStreamingMessage(Message message)
throws java.io.IOException
- Create a copy of the given message
- Parameters:
message -
- Throws:
java.io.IOException
getRawFullContent
protected java.io.InputStream getRawFullContent()
- Specified by:
getRawFullContent in class AbstractMessage
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.