Add PendingConnection#isTransferred API method

This commit is contained in:
md_5 2024-02-04 11:35:20 +11:00
parent 94d5b0d03c
commit b52b14696c
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -92,6 +92,14 @@ public interface PendingConnection extends Connection
*/ */
boolean isLegacy(); boolean isLegacy();
/**
* Gets if this connection has been transferred from another server.
*
* @return true if the connection has been transferred
*/
@ApiStatus.Experimental
boolean isTransferred();
/** /**
* Retrieves a cookie from this pending connection. * Retrieves a cookie from this pending connection.
* *