Skip to content

Commit

Permalink
Feature - Protocol Compression
Browse files Browse the repository at this point in the history
  • Loading branch information
bhvkshah committed Oct 16, 2023
1 parent d9af8f1 commit 2d6bdde
Show file tree
Hide file tree
Showing 14 changed files with 612 additions and 93 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/amazon/redshift/RedshiftConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public interface RedshiftConnection {
*/
RedshiftNotification[] getNotifications() throws SQLException;

Long getBytesReadFromStream();

/**
* This method returns any notifications that have been received since the last call to this
* method. Returns null if there have been no notifications. A timeout can be specified so the
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/amazon/redshift/RedshiftProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ public enum RedshiftProperty {
false,
new String[] {"true", "false"}),

/**
* <p>The compression method used.</p>
*/
COMPRESSION(
"compression",
"lz4:1",
"The compression method used for wire protocol communication between Redshift server and the client/driver"),

/**
* <p>The timeout value used for socket connect operations. If connecting to the server takes longer
* than this value, the connection is broken.</p>
Expand Down
Loading

0 comments on commit 2d6bdde

Please sign in to comment.