[AMQ-8316] Flag deprecated methods in BrokerService (#988)

These methods will be removed or renamed in a future release.

Co-authored-by: Christopher L. Shannon <christopher.l.shannon@gmail.com>
This commit is contained in:
JB Onofré 2023-03-14 12:07:56 +01:00 committed by GitHub
parent 04f589e2bd
commit c41be2a8d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 3 deletions

View File

@ -1672,6 +1672,7 @@ public class BrokerService implements Service {
/** /**
* @return Returns the shutdownOnMasterFailure. * @return Returns the shutdownOnMasterFailure.
*/ */
@Deprecated(forRemoval = true)
public boolean isShutdownOnMasterFailure() { public boolean isShutdownOnMasterFailure() {
return shutdownOnMasterFailure; return shutdownOnMasterFailure;
} }
@ -2901,49 +2902,73 @@ public class BrokerService implements Service {
this.sslContext = sslContext; this.sslContext = sslContext;
} }
/**
* @deprecated this method will be renamed to not use slave wording
*/
@Deprecated(forRemoval = true)
public boolean isShutdownOnSlaveFailure() { public boolean isShutdownOnSlaveFailure() {
return shutdownOnSlaveFailure; return shutdownOnSlaveFailure;
} }
/** /**
* @deprecated this method will be renamed to not use slave wording
*
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor" * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor"
*/ */
@Deprecated(forRemoval = true)
public void setShutdownOnSlaveFailure(boolean shutdownOnSlaveFailure) { public void setShutdownOnSlaveFailure(boolean shutdownOnSlaveFailure) {
this.shutdownOnSlaveFailure = shutdownOnSlaveFailure; this.shutdownOnSlaveFailure = shutdownOnSlaveFailure;
} }
/**
* @deprecated it will be removed as it should not be used directly.
*/
@Deprecated(forRemoval = true)
public boolean isWaitForSlave() { public boolean isWaitForSlave() {
return waitForSlave; return waitForSlave;
} }
/** /**
* @deprecated this method will be renamed to not use slave wording
*
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor" * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor"
*/ */
@Deprecated(forRemoval = true)
public void setWaitForSlave(boolean waitForSlave) { public void setWaitForSlave(boolean waitForSlave) {
this.waitForSlave = waitForSlave; this.waitForSlave = waitForSlave;
} }
/**
* @deprecated this method will be renamed to not use slave wording
*/
@Deprecated(forRemoval = true)
public long getWaitForSlaveTimeout() { public long getWaitForSlaveTimeout() {
return this.waitForSlaveTimeout; return this.waitForSlaveTimeout;
} }
/**
* @deprecated this method will be renamed to not use slave wording
*/
@Deprecated(forRemoval = true)
public void setWaitForSlaveTimeout(long waitForSlaveTimeout) { public void setWaitForSlaveTimeout(long waitForSlaveTimeout) {
this.waitForSlaveTimeout = waitForSlaveTimeout; this.waitForSlaveTimeout = waitForSlaveTimeout;
} }
/** /**
* Get the passiveSlave * @deprecated this method will be renamed to not use slave wording
* @return the passiveSlave
*/ */
@Deprecated(forRemoval = true)
public boolean isPassiveSlave() { public boolean isPassiveSlave() {
return this.passiveSlave; return this.passiveSlave;
} }
/** /**
* Set the passiveSlave * @deprecated this method will be renamed to not use slave wording
*
* @param passiveSlave the passiveSlave to set * @param passiveSlave the passiveSlave to set
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor" * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.BooleanEditor"
*/ */
@Deprecated(forRemoval = true)
public void setPassiveSlave(boolean passiveSlave) { public void setPassiveSlave(boolean passiveSlave) {
this.passiveSlave = passiveSlave; this.passiveSlave = passiveSlave;
} }