-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
351 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/io/lettuce/core/event/connection/ReauthEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.lettuce.core.event.connection; | ||
|
||
import io.lettuce.core.event.Event; | ||
|
||
/** | ||
* Event fired on failed authentication caused either by I/O issues or during connection reauthentication. | ||
* | ||
* @author Ivo Gaydajiev | ||
*/ | ||
public class ReauthEvent implements Event { | ||
|
||
private final String epId; | ||
|
||
public ReauthEvent(String epId) { | ||
this.epId = epId; | ||
} | ||
|
||
public String getEpId() { | ||
return epId; | ||
} | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/io/lettuce/core/event/connection/ReauthFailedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.lettuce.core.event.connection; | ||
|
||
import io.lettuce.core.event.Event; | ||
|
||
import java.net.SocketAddress; | ||
|
||
/** | ||
* Event fired on failed authentication caused either by I/O issues or during connection reauthentication. | ||
* | ||
* @author Ivo Gaydajiev | ||
*/ | ||
public class ReauthFailedEvent implements Event { | ||
|
||
private final String epId; | ||
|
||
private final Throwable cause; | ||
|
||
public ReauthFailedEvent(String epId, Throwable cause) { | ||
this.epId = epId; | ||
this.cause = cause; | ||
} | ||
|
||
public String getEpId() { | ||
return epId; | ||
} | ||
|
||
/** | ||
* Returns the {@link Throwable} that describes the reauth failure cause. | ||
* | ||
* @return the {@link Throwable} that describes the reauth failure cause. | ||
*/ | ||
public Throwable getCause() { | ||
return cause; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.