Package org.neo4j.cdc.client.model
Class Metadata
- java.lang.Object
-
- org.neo4j.cdc.client.model.Metadata
-
public class Metadata extends Object
Useful information about a transaction.
-
-
Constructor Summary
Constructors Constructor Description Metadata(String authenticatedUser, String executingUser, String serverId, String databaseName, CaptureMode captureMode, String connectionType, String connectionClient, String connectionServer, ZonedDateTime txStartTime, ZonedDateTime txCommitTime, Map<String,Object> txMetadata, Map<String,Object> additionalEntries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static MetadatafromMap(Map<?,?> map)Map<String,Object>getAdditionalEntries()Any other information captured but not included as a property.StringgetAuthenticatedUser()The authenticated user when this change was performed.CaptureModegetCaptureMode()CDC capture mode at the time this change was captured.StringgetConnectionClient()The client’s address (usually IP address and port, but it might change based on protocol).StringgetConnectionServer()The server’s address (usually IP address and port but might change based on protocol).StringgetConnectionType()The protocol under which the client is connected through.StringgetDatabaseName()Database name on which this change was performed.StringgetExecutingUser()The user that performed this change.StringgetServerId()The identifier of the server that performed this change.ZonedDateTimegetTxCommitTime()The timestamp when the underlying transaction committed.Map<String,Object>getTxMetadata()The metadata associated with the transaction when the operation was performed.ZonedDateTimegetTxStartTime()The timestamp when the underlying transaction started.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Metadata
public Metadata(String authenticatedUser, String executingUser, String serverId, String databaseName, CaptureMode captureMode, String connectionType, String connectionClient, String connectionServer, ZonedDateTime txStartTime, ZonedDateTime txCommitTime, Map<String,Object> txMetadata, Map<String,Object> additionalEntries)
-
-
Method Detail
-
getExecutingUser
public String getExecutingUser()
The user that performed this change. May be different from @link{authenticatedUser} when using impersonation.- Returns:
- executing user
-
getConnectionClient
public String getConnectionClient()
The client’s address (usually IP address and port, but it might change based on protocol).- Returns:
- client's address
-
getAuthenticatedUser
public String getAuthenticatedUser()
The authenticated user when this change was performed.- Returns:
- authenticated user
-
getDatabaseName
public String getDatabaseName()
Database name on which this change was performed.- Returns:
- database name
-
getCaptureMode
public CaptureMode getCaptureMode()
CDC capture mode at the time this change was captured.- Returns:
- capture mode
-
getServerId
public String getServerId()
The identifier of the server that performed this change.- Returns:
- server id
-
getConnectionType
public String getConnectionType()
The protocol under which the client is connected through.- Returns:
- connection type
-
getConnectionServer
public String getConnectionServer()
The server’s address (usually IP address and port but might change based on protocol).- Returns:
- server's address
-
getTxStartTime
public ZonedDateTime getTxStartTime()
The timestamp when the underlying transaction started.- Returns:
- tx start time
-
getTxCommitTime
public ZonedDateTime getTxCommitTime()
The timestamp when the underlying transaction committed.- Returns:
- tx commit time
-
getAdditionalEntries
public Map<String,Object> getAdditionalEntries()
Any other information captured but not included as a property.- Returns:
- additional information
-
getTxMetadata
public Map<String,Object> getTxMetadata()
The metadata associated with the transaction when the operation was performed.- Returns:
- transaction metadata
-
-