TsgcWSPClient_sgc › 메서드 › Commit
현재 트랜잭션을 커밋하여 서버가 큐에 있는 모든 메시지를 처리하도록 합니다.
procedure Commit(const aChannel: string = '');
| Name | Type | 설명 |
|---|---|---|
aChannel | const string | 커밋할 트랜잭션의 선택적 채널 범위입니다. 기본 트랜잭션을 커밋하려면 비워 두십시오. |
StartTransaction으로 열린 트랜잭션을 닫고, 트랜잭션 중에 큐에 추가된 모든 메시지를 디스패치하도록 서버에 지시합니다. 모든 StartTransaction을 Commit 또는 RollBack과 짝지으십시오.
oProtocol.StartTransaction;
oProtocol.Publish('msg1', 'news');
oProtocol.Commit;