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)
JdbcChannelProvider
initialize
in interface JdbcChannelProvider
context
- the configuration for the systempublic void close()
JdbcChannelProvider
close
in interface JdbcChannelProvider
public void persistEvent(String channel, Event event)
JdbcChannelProvider
persistEvent
in interface JdbcChannelProvider
public Event removeEvent(String channelName)
JdbcChannelProvider
removeEvent
in interface JdbcChannelProvider
public JdbcTransactionImpl getTransaction()
getTransaction
in interface JdbcChannelProvider
protected void updateCurrentChannelSize(long delta)
delta
- the net number of events to be added to reflect the current
size of the channelCopyright © 2009–2019 Apache Software Foundation. All rights reserved.