public class SnappyStore extends java.lang.Object implements IHSMStorage
Constructor and Description |
---|
SnappyStore() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copy(java.lang.String domainUid,
java.lang.String sourceMailboxUid,
java.lang.String destMailboxUid,
java.lang.String hsmId) |
void |
delete(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Delete a stored mime stream with the given HSM.
|
int |
getPriority() |
void |
open(INodeClient nc) |
java.io.InputStream |
peek(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Retrieve a store mime stream for a mailbox with the given HSM id.
|
java.lang.String |
store(java.lang.String domainUid,
java.lang.String mailboxUid,
java.io.InputStream mailContent)
Store a mime stream for the given mailbox and returns the HSM id that can
be used to retrieved the stored stream.
|
java.io.InputStream |
take(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Same as
IArchiveStore#peek(IMailbox, String) except the mime data
is deleted. |
public void open(INodeClient nc)
open
in interface IHSMStorage
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public java.lang.String store(java.lang.String domainUid, java.lang.String mailboxUid, java.io.InputStream mailContent) throws java.io.IOException
IHSMStorage
store
in interface IHSMStorage
java.io.IOException
public java.io.InputStream peek(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
IHSMStorage
peek
in interface IHSMStorage
java.io.IOException
public java.io.InputStream take(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
IHSMStorage
IArchiveStore#peek(IMailbox, String)
except the mime data
is deleted.
If you close the stream before copying it elsewhere, you lost data.take
in interface IHSMStorage
java.io.IOException
public void delete(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
IHSMStorage
delete
in interface IHSMStorage
java.io.IOException
public void copy(java.lang.String domainUid, java.lang.String sourceMailboxUid, java.lang.String destMailboxUid, java.lang.String hsmId) throws java.io.IOException
copy
in interface IHSMStorage
java.io.IOException
public int getPriority()
getPriority
in interface IHSMStorage
Copyright © 2021. All Rights Reserved.