public class JdbcChannelProviderImpl extends Object implements JdbcChannelProvider
| Constructor and Description |
|---|
JdbcChannelProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deinitializes the channel provider.
|
JdbcTransactionImpl |
getTransaction() |
void |
initialize(Context context)
Initializes the channel provider.
|
void |
persistEvent(String channel,
Event event)
Writes the event to the persistent store.
|
Event |
removeEvent(String channelName)
Removes the next event for the named channel from the underlying
persistent store.
|
protected void |
updateCurrentChannelSize(long delta)
A callback method invoked from individual transaction instances after
a successful commit.
|
public void initialize(Context context)
JdbcChannelProviderinitialize in interface JdbcChannelProvidercontext - the configuration for the systempublic void close()
JdbcChannelProviderclose in interface JdbcChannelProviderpublic void persistEvent(String channel, Event event)
JdbcChannelProviderpersistEvent in interface JdbcChannelProviderpublic Event removeEvent(String channelName)
JdbcChannelProviderremoveEvent in interface JdbcChannelProviderpublic JdbcTransactionImpl getTransaction()
getTransaction in interface JdbcChannelProviderprotected void updateCurrentChannelSize(long delta)
delta - the net number of events to be added to reflect the current
size of the channelCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.